/ Celestin Apprentice 7
/ Apprentice-Release7.iso / Demos / A.D. Software / OOFILE 1.3b4d6.sit / OOFILE 1.3b4d6 / MacCodeWarriorDemo1.3b4d6 / docs / samples / ooftst16.cpp ![]() | < prev | next > |
MacBinary | 1997-03-18 | 3.9 KB | [TEXT/CWIE] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, Mon Mar 17 20:06:38 1997, modified Mon Mar 17 20:06:38 1997, creator 'CWIE', type ASCII, 3058 bytes "ooftst16.cpp" , at 0xc72 692 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [CWIE] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 6f 6f 66 74 73 74 | 31 36 2e 63 70 70 00 00 |..ooftst|16.cpp..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 0b f2 00 | 00 02 b4 af 53 9b 1e af |........|....S...|
|00000060| 53 9b 1e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |S.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 3e b8 00 00 |........|....>...|
|00000080| 2f 2f 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 39 |// Copyr|ight 199|
|00000090| 34 20 41 2e 44 2e 20 53 | 6f 66 74 77 61 72 65 2e |4 A.D. S|oftware.|
|000000a0| 20 41 6c 6c 20 52 69 67 | 68 74 73 20 52 65 73 65 | All Rig|hts Rese|
|000000b0| 72 76 65 64 0d 0d 2f 2f | 20 4f 4f 46 54 45 53 54 |rved..//| OOFTEST|
|000000c0| 20 31 36 0d 0d 2f 2f 20 | 74 68 69 73 20 73 61 6d | 16..// |this sam|
|000000d0| 70 6c 65 20 6d 6f 64 69 | 66 69 65 73 20 72 65 6c |ple modi|fies rel|
|000000e0| 61 74 65 64 20 64 61 74 | 61 0d 2f 2f 20 69 6e 63 |ated dat|a.// inc|
|000000f0| 6c 75 64 69 6e 67 20 64 | 65 6d 6f 6e 73 74 72 61 |luding d|emonstra|
|00000100| 74 69 6e 67 20 74 68 65 | 20 63 61 63 68 69 6e 67 |ting the| caching|
|00000110| 20 6f 66 20 72 65 6c 61 | 74 65 64 20 72 65 63 6f | of rela|ted reco|
|00000120| 72 64 73 0d 2f 2f 20 61 | 73 20 77 6f 75 6c 64 20 |rds.// a|s would |
|00000130| 74 79 70 69 63 61 6c 6c | 79 20 62 65 20 75 73 65 |typicall|y be use|
|00000140| 64 20 69 6e 20 61 20 47 | 55 49 20 65 6e 76 69 72 |d in a G|UI envir|
|00000150| 6f 6e 6d 65 6e 74 0d 0d | 2f 2f 20 53 69 6d 70 6c |onment..|// Simpl|
|00000160| 65 20 73 74 72 65 61 6d | 20 49 2f 4f 20 69 73 20 |e stream| I/O is |
|00000170| 75 73 65 64 20 74 6f 20 | 69 6e 74 65 72 61 63 74 |used to |interact|
|00000180| 20 77 69 74 68 20 74 68 | 65 20 75 73 65 72 2e 0d | with th|e user..|
|00000190| 23 69 6e 63 6c 75 64 65 | 20 22 6f 6f 66 69 6c 65 |#include| "oofile|
|000001a0| 2e 68 22 0d 0d 0d 23 69 | 6e 63 6c 75 64 65 20 22 |.h"...#i|nclude "|
|000001b0| 6f 6f 66 74 73 74 31 36 | 2e 68 22 0d 0d 2f 2f 20 |ooftst16|.h"..// |
|000001c0| 67 6c 6f 62 61 6c 20 76 | 61 72 69 61 62 6c 65 73 |global v|ariables|
|000001d0| 20 74 68 61 74 20 64 65 | 66 69 6e 65 20 74 68 65 | that de|fine the|
|000001e0| 20 64 61 74 61 62 61 73 | 65 20 75 73 69 6e 67 20 | databas|e using |
|000001f0| 74 68 65 20 6f 6f 66 74 | 73 74 30 32 20 63 6c 61 |the ooft|st02 cla|
|00000200| 73 73 65 73 0d 0d 09 54 | 45 53 54 5f 43 4f 4e 4e |sses...T|EST_CONN|
|00000210| 45 43 54 20 20 20 20 74 | 68 65 44 42 3b 0d 09 64 |ECT t|heDB;..d|
|00000220| 62 50 61 74 69 65 6e 74 | 73 20 20 20 20 20 50 61 |bPatient|s Pa|
|00000230| 74 69 65 6e 74 73 3b 0d | 09 64 62 56 69 73 69 74 |tients;.|.dbVisit|
|00000240| 73 09 56 69 73 69 74 73 | 3b 0d 09 64 62 52 65 6c |s.Visits|;..dbRel|
|00000250| 61 74 69 6f 6e 73 68 69 | 70 20 50 61 74 69 65 6e |ationshi|p Patien|
|00000260| 74 56 69 73 69 74 73 28 | 50 61 74 69 65 6e 74 73 |tVisits(|Patients|
|00000270| 2e 56 69 73 69 74 73 2c | 20 56 69 73 69 74 73 2e |.Visits,| Visits.|
|00000280| 50 61 74 69 65 6e 74 29 | 3b 0d 09 0d 69 6e 74 20 |Patient)|;...int |
|00000290| 6d 61 69 6e 28 29 0d 7b | 0d 09 63 6f 75 74 20 3c |main().{|..cout <|
|000002a0| 3c 20 22 4f 4f 46 49 4c | 45 20 56 61 6c 69 64 61 |< "OOFIL|E Valida|
|000002b0| 74 69 6f 6e 20 53 75 69 | 74 65 20 2d 20 54 65 73 |tion Sui|te - Tes|
|000002c0| 74 20 31 36 5c 6e 22 0d | 09 09 20 3c 3c 20 22 53 |t 16\n".|.. << "S|
|000002d0| 69 6d 70 6c 65 20 74 65 | 73 74 20 74 6f 20 64 65 |imple te|st to de|
|000002e0| 6d 6f 6e 73 74 72 61 74 | 65 20 75 70 64 61 74 69 |monstrat|e updati|
|000002f0| 6e 67 20 72 65 6c 61 74 | 65 64 20 66 69 65 6c 64 |ng relat|ed field|
|00000300| 73 22 20 3c 3c 20 65 6e | 64 6c 0d 09 09 20 3c 3c |s" << en|dl... <<|
|00000310| 20 22 75 73 69 6e 67 20 | 61 20 73 69 6d 69 6c 61 | "using |a simila|
|00000320| 72 20 64 61 74 61 62 61 | 73 65 20 74 6f 20 6f 6f |r databa|se to oo|
|00000330| 66 74 73 74 30 36 20 62 | 75 74 20 77 69 74 68 20 |ftst06 b|ut with |
|00000340| 64 69 72 65 63 74 20 4f | 49 44 20 72 65 6c 61 74 |direct O|ID relat|
|00000350| 69 6f 6e 73 68 69 70 73 | 22 20 3c 3c 20 65 6e 64 |ionships|" << end|
|00000360| 6c 3b 0d 0d 09 23 69 66 | 64 65 66 20 54 45 53 54 |l;...#if|def TEST|
|00000370| 49 4e 47 5f 44 42 41 53 | 45 0d 09 09 23 69 66 64 |ING_DBAS|E...#ifd|
|00000380| 65 66 20 5f 4d 61 63 69 | 6e 74 6f 73 68 0d 09 09 |ef _Maci|ntosh...|
|00000390| 09 63 6f 6e 73 74 20 63 | 68 61 72 2a 20 6b 45 78 |.const c|har* kEx|
|000003a0| 69 73 74 73 4e 61 6d 65 | 20 3d 20 20 22 3a 6f 6f |istsName| = ":oo|
|000003b0| 66 74 73 74 31 36 3a 50 | 61 74 69 65 6e 74 73 2e |ftst16:P|atients.|
|000003c0| 64 62 66 22 3b 0d 09 09 | 09 63 6f 6e 73 74 20 63 |dbf";...|.const c|
|000003d0| 68 61 72 2a 20 6b 44 61 | 74 61 62 61 73 65 4e 61 |har* kDa|tabaseNa|
|000003e0| 6d 65 20 3d 20 22 3a 6f | 6f 66 74 73 74 31 36 3a |me = ":o|oftst16:|
|000003f0| 22 3b 0d 09 09 23 65 6c | 73 65 0d 09 09 09 63 6f |";...#el|se....co|
|00000400| 6e 73 74 20 63 68 61 72 | 2a 20 6b 45 78 69 73 74 |nst char|* kExist|
|00000410| 73 4e 61 6d 65 20 3d 20 | 20 20 22 50 61 74 69 65 |sName = | "Patie|
|00000420| 6e 74 73 2e 64 62 66 22 | 0d 09 09 09 63 6f 6e 73 |nts.dbf"|....cons|
|00000430| 74 20 63 68 61 72 2a 20 | 6b 44 61 74 61 62 61 73 |t char* |kDatabas|
|00000440| 65 4e 61 6d 65 20 3d 20 | 22 22 3b 0d 09 09 23 65 |eName = |"";...#e|
|00000450| 6e 64 69 66 09 0d 0d 09 | 23 65 6c 73 65 0d 09 09 |ndif....|#else...|
|00000460| 63 6f 6e 73 74 20 63 68 | 61 72 2a 20 6b 44 61 74 |const ch|ar* kDat|
|00000470| 61 62 61 73 65 4e 61 6d | 65 20 3d 20 22 6f 6f 66 |abaseNam|e = "oof|
|00000480| 74 73 74 31 36 2e 64 62 | 22 3b 0d 09 09 63 6f 6e |tst16.db|";...con|
|00000490| 73 74 20 63 68 61 72 2a | 20 6b 45 78 69 73 74 73 |st char*| kExists|
|000004a0| 4e 61 6d 65 20 3d 20 6b | 44 61 74 61 62 61 73 65 |Name = k|Database|
|000004b0| 4e 61 6d 65 3b 0d 09 23 | 65 6e 64 69 66 0d 0d 09 |Name;..#|endif...|
|000004c0| 69 66 20 28 64 62 43 6f | 6e 6e 65 63 74 3a 3a 66 |if (dbCo|nnect::f|
|000004d0| 69 6c 65 45 78 69 73 74 | 73 28 6b 45 78 69 73 74 |ileExist|s(kExist|
|000004e0| 73 4e 61 6d 65 29 29 20 | 7b 0d 09 09 74 68 65 44 |sName)) |{...theD|
|000004f0| 42 2e 6f 70 65 6e 43 6f | 6e 6e 65 63 74 69 6f 6e |B.openCo|nnection|
|00000500| 28 6b 44 61 74 61 62 61 | 73 65 4e 61 6d 65 29 3b |(kDataba|seName);|
|00000510| 0d 09 09 50 61 74 69 65 | 6e 74 73 2e 64 65 6c 65 |...Patie|nts.dele|
|00000520| 74 65 41 6c 6c 28 29 3b | 0d 09 7d 0d 09 65 6c 73 |teAll();|..}..els|
|00000530| 65 20 7b 0d 09 09 74 68 | 65 44 42 2e 6e 65 77 43 |e {...th|eDB.newC|
|00000540| 6f 6e 6e 65 63 74 69 6f | 6e 28 6b 44 61 74 61 62 |onnectio|n(kDatab|
|00000550| 61 73 65 4e 61 6d 65 29 | 3b 0d 09 7d 0d 09 50 61 |aseName)|;..}..Pa|
|00000560| 74 69 65 6e 74 73 2e 41 | 64 64 54 65 73 74 44 61 |tients.A|ddTestDa|
|00000570| 74 61 28 29 3b 0d 09 0d | 09 63 6f 75 74 20 3c 3c |ta();...|.cout <<|
|00000580| 20 22 4e 6f 77 20 66 69 | 6e 64 69 6e 67 20 74 68 | "Now fi|nding th|
|00000590| 65 20 46 6c 75 20 73 75 | 66 66 65 72 65 72 73 3a |e Flu su|fferers:|
|000005a0| 20 22 20 3c 3c 20 65 6e | 64 6c 3b 0d 09 50 61 74 | " << en|dl;..Pat|
|000005b0| 69 65 6e 74 73 2e 73 65 | 61 72 63 68 28 50 61 74 |ients.se|arch(Pat|
|000005c0| 69 65 6e 74 73 2e 56 69 | 73 69 74 73 2d 3e 57 68 |ients.Vi|sits->Wh|
|000005d0| 79 3d 3d 22 46 6c 75 22 | 29 3b 0d 09 63 6f 75 74 |y=="Flu"|);..cout|
|000005e0| 20 3c 3c 20 50 61 74 69 | 65 6e 74 73 20 3c 3c 20 | << Pati|ents << |
|000005f0| 65 6e 64 6c 20 3c 3c 20 | 65 6e 64 6c 3b 0d 0d 09 |endl << |endl;...|
|00000600| 63 6f 75 74 20 3c 3c 20 | 22 4e 6f 77 20 66 69 6e |cout << |"Now fin|
|00000610| 64 69 6e 67 20 74 68 65 | 20 70 6f 6f 72 6c 79 2d |ding the| poorly-|
|00000620| 70 61 69 64 20 46 6c 75 | 20 73 75 66 66 65 72 65 |paid Flu| suffere|
|00000630| 72 73 3a 20 22 20 3c 3c | 20 65 6e 64 6c 3b 0d 09 |rs: " <<| endl;..|
|00000640| 50 61 74 69 65 6e 74 73 | 2e 73 65 61 72 63 68 28 |Patients|.search(|
|00000650| 50 61 74 69 65 6e 74 73 | 2e 53 61 6c 61 72 79 20 |Patients|.Salary |
|00000660| 3c 20 36 30 30 30 30 20 | 26 26 20 50 61 74 69 65 |< 60000 |&& Patie|
|00000670| 6e 74 73 2e 56 69 73 69 | 74 73 2d 3e 57 68 79 3d |nts.Visi|ts->Why=|
|00000680| 3d 22 46 6c 75 22 29 3b | 0d 09 63 6f 75 74 20 3c |="Flu");|..cout <|
|00000690| 3c 20 50 61 74 69 65 6e | 74 73 20 3c 3c 20 65 6e |< Patien|ts << en|
|000006a0| 64 6c 20 3c 3c 20 65 6e | 64 6c 3b 0d 0d 09 50 61 |dl << en|dl;...Pa|
|000006b0| 74 69 65 6e 74 73 2e 73 | 65 6c 65 63 74 41 6c 6c |tients.s|electAll|
|000006c0| 28 29 3b 0d 09 64 62 56 | 69 65 77 20 73 6d 69 74 |();..dbV|iew smit|
|000006d0| 68 56 69 73 69 74 73 28 | 50 61 74 69 65 6e 74 73 |hVisits(|Patients|
|000006e0| 2e 56 69 73 69 74 73 29 | 3b 20 0d 09 73 6d 69 74 |.Visits)|; ..smit|
|000006f0| 68 56 69 73 69 74 73 20 | 3c 3c 20 50 61 74 69 65 |hVisits |<< Patie|
|00000700| 6e 74 73 2e 56 69 73 69 | 74 73 2d 3e 56 69 73 69 |nts.Visi|ts->Visi|
|00000710| 74 44 61 74 65 20 3c 3c | 20 50 61 74 69 65 6e 74 |tDate <<| Patient|
|00000720| 73 2e 56 69 73 69 74 73 | 2d 3e 57 68 79 3b 20 0d |s.Visits|->Why; .|
|00000730| 0d 09 50 61 74 69 65 6e | 74 73 2e 73 65 61 72 63 |..Patien|ts.searc|
|00000740| 68 28 50 61 74 69 65 6e | 74 73 2e 4c 61 73 74 4e |h(Patien|ts.LastN|
|00000750| 61 6d 65 3d 3d 22 53 6d | 69 74 68 22 29 3b 0d 09 |ame=="Sm|ith");..|
|00000760| 63 6f 75 74 20 3c 3c 20 | 22 44 75 6d 70 69 6e 67 |cout << |"Dumping|
|00000770| 20 53 6d 69 74 68 20 61 | 6e 64 20 68 69 73 20 76 | Smith a|nd his v|
|00000780| 69 73 69 74 73 3a 20 22 | 20 3c 3c 20 65 6e 64 6c |isits: "| << endl|
|00000790| 20 0d 09 20 20 20 20 20 | 3c 3c 20 50 61 74 69 65 | .. |<< Patie|
|000007a0| 6e 74 73 20 3c 3c 20 65 | 6e 64 6c 20 0d 09 09 20 |nts << e|ndl ... |
|000007b0| 3c 3c 20 73 6d 69 74 68 | 56 69 73 69 74 73 20 3c |<< smith|Visits <|
|000007c0| 3c 20 65 6e 64 6c 3b 0d | 09 0d 09 63 6f 75 74 20 |< endl;.|...cout |
|000007d0| 3c 3c 20 22 63 68 61 6e | 67 69 6e 67 20 74 68 65 |<< "chan|ging the|
|000007e0| 20 66 69 72 73 74 20 72 | 65 61 73 6f 6e 20 74 6f | first r|eason to|
|000007f0| 20 27 43 6f 6d 70 75 74 | 65 72 2d 49 6e 64 75 63 | 'Comput|er-Induc|
|00000800| 65 64 20 53 61 6e 69 74 | 79 27 20 22 20 3c 3c 20 |ed Sanit|y' " << |
|00000810| 65 6e 64 6c 3b 0d 09 50 | 61 74 69 65 6e 74 73 2e |endl;..P|atients.|
|00000820| 56 69 73 69 74 73 2d 3e | 67 6f 74 6f 52 65 63 6f |Visits->|gotoReco|
|00000830| 72 64 28 30 29 3b 0d 09 | 50 61 74 69 65 6e 74 73 |rd(0);..|Patients|
|00000840| 2e 56 69 73 69 74 73 2d | 3e 57 68 79 20 3d 20 22 |.Visits-|>Why = "|
|00000850| 43 6f 6d 70 75 74 65 72 | 2d 49 6e 64 75 63 65 64 |Computer|-Induced|
|00000860| 20 53 61 6e 69 74 79 22 | 3b 0d 09 0d 09 63 6f 75 | Sanity"|;....cou|
|00000870| 74 20 3c 3c 20 22 63 68 | 61 6e 67 69 6e 67 20 74 |t << "ch|anging t|
|00000880| 68 65 20 73 65 63 6f 6e | 64 20 72 65 61 73 6f 6e |he secon|d reason|
|00000890| 20 74 6f 20 27 46 75 6e | 6e 79 20 56 69 65 77 73 | to 'Fun|ny Views|
|000008a0| 27 20 22 20 3c 3c 20 65 | 6e 64 6c 3b 0d 09 73 6d |' " << e|ndl;..sm|
|000008b0| 69 74 68 56 69 73 69 74 | 73 2e 73 6f 75 72 63 65 |ithVisit|s.source|
|000008c0| 28 29 2d 3e 67 6f 74 6f | 52 65 63 6f 72 64 28 31 |()->goto|Record(1|
|000008d0| 29 3b 20 20 2f 2f 20 74 | 65 73 74 20 6e 61 76 69 |); // t|est navi|
|000008e0| 67 61 74 69 6e 67 20 76 | 69 61 20 74 68 65 20 76 |gating v|ia the v|
|000008f0| 69 65 77 0d 09 50 61 74 | 69 65 6e 74 73 2e 56 69 |iew..Pat|ients.Vi|
|00000900| 73 69 74 73 2d 3e 57 68 | 79 20 3d 20 22 46 75 6e |sits->Wh|y = "Fun|
|00000910| 6e 79 20 56 69 65 77 73 | 22 3b 0d 0d 09 50 61 74 |ny Views|";...Pat|
|00000920| 69 65 6e 74 73 2e 73 61 | 76 65 52 65 63 6f 72 64 |ients.sa|veRecord|
|00000930| 28 29 3b 20 20 2f 2f 20 | 73 61 76 65 20 62 6f 74 |(); // |save bot|
|00000940| 68 20 63 68 61 6e 67 65 | 73 0d 0d 09 63 6f 75 74 |h change|s...cout|
|00000950| 20 3c 3c 20 22 44 75 6d | 70 69 6e 67 20 53 6d 69 | << "Dum|ping Smi|
|00000960| 74 68 20 61 6e 64 20 63 | 68 61 6e 67 65 64 20 76 |th and c|hanged v|
|00000970| 69 73 69 74 73 3a 20 22 | 20 3c 3c 20 65 6e 64 6c |isits: "| << endl|
|00000980| 20 0d 09 20 20 20 20 20 | 3c 3c 20 50 61 74 69 65 | .. |<< Patie|
|00000990| 6e 74 73 20 3c 3c 20 65 | 6e 64 6c 20 0d 09 09 20 |nts << e|ndl ... |
|000009a0| 3c 3c 20 73 6d 69 74 68 | 56 69 73 69 74 73 20 3c |<< smith|Visits <|
|000009b0| 3c 20 65 6e 64 6c 3b 0d | 0d 09 50 61 74 69 65 6e |< endl;.|..Patien|
|000009c0| 74 73 2e 41 64 64 56 69 | 73 69 74 28 22 31 34 2f |ts.AddVi|sit("14/|
|000009d0| 32 2f 31 39 39 35 22 2c | 20 22 41 6e 78 69 65 74 |2/1995",| "Anxiet|
|000009e0| 79 20 41 74 74 61 63 6b | 73 22 29 3b 0d 09 0d 2f |y Attack|s");.../|
|000009f0| 2f 20 6e 6f 77 20 63 68 | 61 6e 67 65 20 74 6f 20 |/ now ch|ange to |
|00000a00| 61 6e 6f 74 68 65 72 20 | 72 65 6c 61 74 65 64 20 |another |related |
|00000a10| 72 65 63 6f 72 64 20 2d | 20 6f 75 72 20 6e 65 77 |record -| our new|
|00000a20| 20 6f 6e 65 20 73 68 6f | 75 6c 64 20 62 65 20 63 | one sho|uld be c|
|00000a30| 61 63 68 65 64 0d 09 73 | 6d 69 74 68 56 69 73 69 |ached..s|mithVisi|
|00000a40| 74 73 2e 73 6f 75 72 63 | 65 28 29 2d 3e 67 6f 74 |ts.sourc|e()->got|
|00000a50| 6f 52 65 63 6f 72 64 28 | 31 29 3b 20 20 0d 09 50 |oRecord(|1); ..P|
|00000a60| 61 74 69 65 6e 74 73 2e | 56 69 73 69 74 73 2d 3e |atients.|Visits->|
|00000a70| 57 68 79 20 3d 20 22 43 | 68 61 6e 67 65 64 20 41 |Why = "C|hanged A|
|00000a80| 67 61 69 6e 22 3b 0d 0d | 2f 2f 20 72 65 74 75 72 |gain";..|// retur|
|00000a90| 6e 20 74 6f 20 74 68 65 | 20 6e 65 77 20 72 65 63 |n to the| new rec|
|00000aa0| 6f 72 64 20 28 69 6e 20 | 74 68 65 20 63 61 63 68 |ord (in |the cach|
|00000ab0| 65 29 20 61 6e 64 20 75 | 70 64 61 74 65 20 69 74 |e) and u|pdate it|
|00000ac0| 09 0d 09 73 6d 69 74 68 | 56 69 73 69 74 73 2e 73 |...smith|Visits.s|
|00000ad0| 6f 75 72 63 65 28 29 2d | 3e 67 6f 74 6f 52 65 63 |ource()-|>gotoRec|
|00000ae0| 6f 72 64 28 32 29 3b 20 | 20 0d 09 50 61 74 69 65 |ord(2); | ..Patie|
|00000af0| 6e 74 73 2e 56 69 73 69 | 74 73 2d 3e 56 69 73 69 |nts.Visi|ts->Visi|
|00000b00| 74 44 61 74 65 20 3d 20 | 22 31 35 2f 32 2f 31 39 |tDate = |"15/2/19|
|00000b10| 39 34 22 3b 0d 09 0d 09 | 50 61 74 69 65 6e 74 73 |94";....|Patients|
|00000b20| 2e 73 61 76 65 52 65 63 | 6f 72 64 28 29 3b 20 0d |.saveRec|ord(); .|
|00000b30| 09 63 6f 75 74 20 3c 3c | 20 22 44 75 6d 70 69 6e |.cout <<| "Dumpin|
|00000b40| 67 20 53 6d 69 74 68 20 | 61 6e 64 20 76 69 73 69 |g Smith |and visi|
|00000b50| 74 73 20 77 69 74 68 20 | 61 64 64 65 64 20 76 69 |ts with |added vi|
|00000b60| 73 69 74 3a 20 22 20 3c | 3c 20 65 6e 64 6c 20 0d |sit: " <|< endl .|
|00000b70| 09 20 20 20 20 20 3c 3c | 20 50 61 74 69 65 6e 74 |. <<| Patient|
|00000b80| 73 20 3c 3c 20 65 6e 64 | 6c 20 0d 09 09 20 3c 3c |s << end|l ... <<|
|00000b90| 20 73 6d 69 74 68 56 69 | 73 69 74 73 20 3c 3c 20 | smithVi|sits << |
|00000ba0| 65 6e 64 6c 3b 0d 09 09 | 20 0d 09 63 6f 75 74 20 |endl;...| ..cout |
|00000bb0| 3c 3c 20 22 4e 6f 77 20 | 64 75 6d 70 69 6e 67 20 |<< "Now |dumping |
|00000bc0| 74 68 65 20 65 6e 74 69 | 72 65 20 64 61 74 61 62 |the enti|re datab|
|00000bd0| 61 73 65 3a 20 22 20 3c | 3c 20 65 6e 64 6c 20 3c |ase: " <|< endl <|
|00000be0| 3c 20 74 68 65 44 42 3b | 0d 09 0d 09 63 6f 75 74 |< theDB;|....cout|
|00000bf0| 20 3c 3c 20 22 44 65 73 | 63 72 69 70 74 69 6f 6e | << "Des|cription|
|00000c00| 20 6f 66 20 64 61 74 61 | 62 61 73 65 20 73 63 68 | of data|base sch|
|00000c10| 65 6d 61 3a 20 22 20 3c | 3c 20 65 6e 64 6c 3b 0d |ema: " <|< endl;.|
|00000c20| 09 74 68 65 44 42 2e 64 | 65 73 63 72 69 62 65 28 |.theDB.d|escribe(|
|00000c30| 63 6f 75 74 29 3b 0d 09 | 0d 09 63 6f 75 74 20 3c |cout);..|..cout <|
|00000c40| 3c 20 22 64 6f 6e 65 22 | 20 3c 3c 20 65 6e 64 6c |< "done"| << endl|
|00000c50| 3b 0d 0d 09 72 65 74 75 | 72 6e 20 45 58 49 54 5f |;...retu|rn EXIT_|
|00000c60| 53 55 43 43 45 53 53 3b | 0d 7d 20 20 20 20 20 20 |SUCCESS;|.} |
|00000c70| 20 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00000c80| 00 00 01 00 00 00 02 26 | 00 00 01 26 00 00 00 8e |.......&|...&....|
|00000c90| 44 6f 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 20 6f |Do you w|ant to o|
|00000ca0| 70 65 6e 20 69 74 20 61 | 6e 79 77 61 79 3f 00 00 |pen it a|nyway?..|
|00000cb0| 0c 6f 6f 66 74 73 74 31 | 36 2e 63 70 70 31 02 00 |.ooftst1|6.cpp1..|
|00000cc0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000cd0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 b0 1b 75 fa 00 00 | 00 00 00 00 02 b4 65 6e |....u...|......en|
|00000d00| 6f 75 67 68 20 6d 65 6d | 6f 72 79 20 66 6f 72 20 |ough mem|ory for |
|00000d10| 6d 61 6b 65 2e 0b 41 6e | 61 6c 79 7a 69 6e 67 3a |make..An|alyzing:|
|00000d20| 20 1b 57 72 69 74 69 6e | 67 20 4d 61 6b 65 20 6d | .Writin|g Make m|
|00000d30| 61 70 20 66 69 6c 65 20 | 3a 20 25 73 2e 20 54 68 |ap file |: %s. Th|
|00000d40| 65 72 65 27 73 20 61 20 | 63 79 63 6c 65 20 69 6e |ere's a |cycle in|
|00000d50| 76 6f 6c 76 69 6e 67 20 | 75 6e 69 74 3a 20 17 41 |volving |unit: .A|
|00000d60| 6e 61 6c 79 7a 69 6e 67 | 20 64 65 70 65 6e 64 65 |nalyzing| depende|
|00000d70| 6e 63 69 65 73 2e 15 23 | 20 44 65 70 65 6e 64 65 |ncies..#| Depende|
|00000d80| 00 00 00 94 00 00 00 00 | 00 00 00 42 00 00 00 42 |........|...B...B|
|00000d90| 00 01 00 00 00 01 00 50 | 00 00 ff ff 00 00 00 00 |.......P|........|
|00000da0| 00 00 ff ff ff ff ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 fd fc ff ff | e5 fd 01 dc 01 dc 01 dc |........|........|
|00000dc0| ef f1 ff ff 3f 0e 00 00 | 00 00 00 00 ff ff ff ff |....?...|........|
|00000dd0| ff ff 00 00 00 00 00 00 | 00 00 00 00 00 00 00 bb |........|........|
|00000de0| fc 81 02 6e fe fb 00 00 | 00 00 00 00 00 00 00 00 |...n....|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e10| 00 00 00 00 00 00 00 00 | 00 00 00 16 01 00 00 00 |........|........|
|00000e20| 00 00 00 00 01 00 01 00 | 00 07 07 43 6f 75 72 69 |........|...Couri|
|00000e30| 65 72 00 00 00 08 00 00 | 00 00 00 00 00 00 00 00 |er......|........|
|00000e40| 00 10 00 01 00 00 02 14 | 00 00 02 18 05 6d 61 69 |........|.....mai|
|00000e50| 6e 00 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |n....H..|Monaco..|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 00 00 00 00 00 00 | 00 03 00 04 00 5a 00 29 |........|.....Z.)|
|00000e80| 02 3b 03 2d 00 5a 00 29 | 02 3b 03 2d af 68 7a 5a |.;.-.Z.)|.;.-.hzZ|
|00000e90| 00 00 00 00 00 00 00 00 | 00 00 00 44 01 00 00 00 |........|...D....|
|00000ea0| 00 04 00 01 00 01 00 00 | 01 00 00 00 02 26 00 00 |........|.....&..|
|00000eb0| 01 26 00 00 00 8e 01 a3 | eb 60 2a f8 00 00 00 1c |.&......|.`*.....|
|00000ec0| 00 8e 00 04 4d 50 53 52 | 00 01 00 2a 45 50 4f 53 |....MPSR|...*EPOS|
|00000ed0| 00 00 00 42 46 50 52 46 | 00 00 00 4e 46 50 72 66 |...BFPRF|...NFPrf|
|00000ee0| 00 00 00 5a 4d 57 42 42 | 00 00 00 66 03 ef ff ff |...ZMWBB|...f....|
|00000ef0| 00 00 00 be 00 00 00 00 | 03 ed ff ff 00 00 00 d2 |........|........|
|00000f00| 00 00 00 00 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000f10| 05 1a ff ff 00 00 00 98 | 00 00 00 00 05 1a ff ff |........|........|
|00000f20| 00 00 00 b2 00 00 00 00 | 03 f0 ff ff 00 00 01 1e |........|........|
|00000f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+